package spzx.mapper;

import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserMapper {
    /**
     * 查询所有的系统用户
     */

    public List<SysUser> findAll();

    SysUser findByUserName(String userName);

    List<SysUser> selectByCondition(SysUserDto sysUserDto);

    void addSysUser(SysUser sysUser);

    void deleteById(Long sysUserId);

    void deleteByIds(List<Long> ids);

    void updateSysUser(SysUser sysUser);
}
